package com.example.demo.main;

import java.math.BigDecimal;

public class UserCart {
    private Long rid;

    private String userName;

    private String goodsName;

    private Integer count;

    private String goodsPicture;

    public UserCart(Long rid, Integer count) {
        this.rid = rid;
        this.count = count;
    }

    public UserCart() {
    }

    private String storeName;

    private BigDecimal price;

    public UserCart(Long rid, String userName, String goodsName, Integer count, String goodsPicture, String storeName, BigDecimal price) {
        this.rid = rid;
        this.userName = userName;
        this.goodsName = goodsName;
        this.count = count;
        this.goodsPicture = goodsPicture;
        this.storeName = storeName;
        this.price = price;
    }

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getGoodsPicture() {
        return goodsPicture;
    }

    public void setGoodsPicture(String goodsPicture) {
        this.goodsPicture = goodsPicture == null ? null : goodsPicture.trim();
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName == null ? null : storeName.trim();
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}